package com.ly.heart.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ly.common.utils.DateUtils;
import com.ly.heart.mapper.KingReceiveNoticeMaterialDetailMapper;
import com.ly.heart.service.IKingReceiveNoticeMaterialDetailService;
import org.springframework.stereotype.Service;
import com.ly.heart.domain.KingReceiveNoticeMaterialDetailEntity;
import javax.annotation.Resource;

/**
 * 金蝶-收料通知单物料明细其他信息Service业务层处理
 *
 * @author cxl
 * @date 2024-08-09
 */
@Service
public class KingReceiveNoticeMaterialDetailServiceImpl extends ServiceImpl<KingReceiveNoticeMaterialDetailMapper,KingReceiveNoticeMaterialDetailEntity> implements IKingReceiveNoticeMaterialDetailService {

    @Resource
    private KingReceiveNoticeMaterialDetailMapper kingReceiveNoticeMaterialDetailMapper;

    /**
     * 查询金蝶-收料通知单物料明细其他信息
     *
     * @param id 金蝶-收料通知单物料明细其他信息ID
     * @return 金蝶-收料通知单物料明细其他信息
     */
    @Override
    public KingReceiveNoticeMaterialDetailEntity selectKingReceiveNoticeMaterialDetailEntityById(String id)
    {
        return kingReceiveNoticeMaterialDetailMapper.selectKingReceiveNoticeMaterialDetailEntityById(id);
    }

    /**
     * 查询金蝶-收料通知单物料明细其他信息列表
     *
     * @param kingReceiveNoticeMaterialDetailEntity 金蝶-收料通知单物料明细其他信息
     * @return 金蝶-收料通知单物料明细其他信息
     */
    @Override
    public List<KingReceiveNoticeMaterialDetailEntity> selectKingReceiveNoticeMaterialDetailEntityList(KingReceiveNoticeMaterialDetailEntity kingReceiveNoticeMaterialDetailEntity)
    {
        return kingReceiveNoticeMaterialDetailMapper.selectKingReceiveNoticeMaterialDetailEntityList(kingReceiveNoticeMaterialDetailEntity);
    }

    /**
     * 新增金蝶-收料通知单物料明细其他信息
     *
     * @param kingReceiveNoticeMaterialDetailEntity 金蝶-收料通知单物料明细其他信息
     * @return 结果
     */
    @Override
    public int insertKingReceiveNoticeMaterialDetailEntity(KingReceiveNoticeMaterialDetailEntity kingReceiveNoticeMaterialDetailEntity)
    {
        kingReceiveNoticeMaterialDetailEntity.setCreateTime(DateUtils.getNowDate());
        return kingReceiveNoticeMaterialDetailMapper.insertKingReceiveNoticeMaterialDetailEntity(kingReceiveNoticeMaterialDetailEntity);
    }

    /**
     * 修改金蝶-收料通知单物料明细其他信息
     *
     * @param kingReceiveNoticeMaterialDetailEntity 金蝶-收料通知单物料明细其他信息
     * @return 结果
     */
    @Override
    public int updateKingReceiveNoticeMaterialDetailEntity(KingReceiveNoticeMaterialDetailEntity kingReceiveNoticeMaterialDetailEntity)
    {
        return kingReceiveNoticeMaterialDetailMapper.updateKingReceiveNoticeMaterialDetailEntity(kingReceiveNoticeMaterialDetailEntity);
    }

    /**
     * 批量删除金蝶-收料通知单物料明细其他信息
     *
     * @param ids 需要删除的金蝶-收料通知单物料明细其他信息ID
     * @return 结果
     */
    @Override
    public int deleteKingReceiveNoticeMaterialDetailEntityByIds(String[] ids)
    {
        return kingReceiveNoticeMaterialDetailMapper.deleteKingReceiveNoticeMaterialDetailEntityByIds(ids);
    }

    /**
     * 删除金蝶-收料通知单物料明细其他信息信息
     *
     * @param id 金蝶-收料通知单物料明细其他信息ID
     * @return 结果
     */
    @Override
    public int deleteKingReceiveNoticeMaterialDetailEntityById(String id)
    {
        return kingReceiveNoticeMaterialDetailMapper.deleteKingReceiveNoticeMaterialDetailEntityById(id);
    }
}
